/*
 * Copyright (c) 2020-2030, Shuigedeng (981376577@qq.com & https://blog.taotaocloud.top/).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.taotao.cloud.order.application.service.purchase.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taotao.cloud.order.application.service.purchase.PurchaseQuotedItemCommandService;
import com.taotao.cloud.order.infrastructure.persistent.mapper.purchase.PurchaseQuotedItemMapper;
import com.taotao.cloud.order.infrastructure.persistent.persistence.purchase.PurchaseQuotedItemPO;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 采购单子内容业务层实现
 *
 * @author shuigedeng
 * @version 2022.04
 * @since 2022-04-28 08:55:42
 */
@Service
public class PurchaseQuotedItemCommandServiceImpl extends ServiceImpl<PurchaseQuotedItemMapper, PurchaseQuotedItemPO>
        implements PurchaseQuotedItemCommandService {
	@Override
	public boolean addPurchaseQuotedItem(String PurchaseQuotedId, List<PurchaseQuotedItemPO> purchaseQuotedItemPOList) {
		return false;
	}

	@Override
	public List<PurchaseQuotedItemPO> purchaseQuotedItemList(String purchaseQuotedId) {
		return List.of();
	}

	//@Override
    //@Transactional(rollbackFor = Exception.class)
    //public boolean addPurchaseQuotedItem(String purchaseQuotedId, List<PurchaseQuotedItemPO> purchaseQuotedItemPOList) {
    //    for (PurchaseQuotedItemPO purchaseQuotedItemPO : purchaseQuotedItemPOList) {
    //        purchaseQuotedItemPO.setPurchaseQuotedId(purchaseQuotedId);
    //    }
	//
    //    return this.saveBatch(purchaseQuotedItemPOList);
    //}
	//
    //@Override
    //public List<PurchaseQuotedItemPO> purchaseQuotedItemList(String purchaseQuotedId) {
    //    return this.list(new LambdaQueryWrapper<PurchaseQuotedItemPO>()
    //            .eq(PurchaseQuotedItemPO::getPurchaseQuotedId, purchaseQuotedId));
    //}
}
